package com.lemon.cloud.curator;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

/**
 * @author lemon
 * @version 1.0
 * @description: TODO
 * @date Create by lemon on 2019-09-09 12:45
 */
@Slf4j
@SpringBootApplication
public class CuratorApplication extends SpringApplication {
    public static void main(String[] args) {
        Environment env = SpringApplication.run(CuratorApplication.class, args).getEnvironment();
        log.info("\n----------------------------------------------------------\n\t" +
                        "服务 '{}' 启动完成! \n\t" +
                        "环境(s): \t{}\n----------------------------------------------------------",
                env.getProperty("spring.application.name"),
                env.getActiveProfiles());
    }
}
